<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('VIEW列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
		<div class="row">
			<div class="col-sm-12 search-collapse">
				<form id="formId">
					<div class="select-list">
						<ul>
							<li>
								码商代理：<select name="userId">
								<option value=""></option>
								<option th:each="user1:${channels}" th:value="${user1.userId}" th:text="${user1.userName}"></option>
							</select>
							</li>
							<li>
								账号分组：<select id="groupName" name="groupName">
								<option value="">所有</option>
								<option th:each="dict : ${groups}" th:text="${dict.groupName}"
										th:value="${dict.groupName}"></option>
							</select>
							</li>
							<li>
								账号状态：<select id="accountStatus" name="accountStatus">
								<option value="">所有</option>
								<option value="正常">正常</option>
								<option value="停止">停止</option>
							</select>
							</li>
							<li>
								收款账号：<input type="text" name="recAccount"/>
							</li>
							<li class="select-time">
								<label>统计时间：</label>
								<input type="text" class="time-input" id="startTime" placeholder="开始时间"
									   name="params[beginTime]"/>
								<span>-</span>
								<input type="text" class="time-input" id="endTime" placeholder="结束时间"
									   name="params[endTime]"/>
							</li>
							<li>
								<a class="btn btn-success btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
								<a class="btn btn-success btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
							</li>
						</ul>
					</div>
				</form>
			</div>
			
	        <div class="btn-group-sm" id="toolbar" role="group">
				<a class="btn btn-success" onclick="$.table.exportExcel()" shiro:hasPermission="channel:vwChannelWbCashDayStat:export">
						<i class="fa fa-download"></i> 导出
				 </a>
			</div>
			<div class="col-sm-12 select-table table-striped">
				<table id="bootstrap-table" data-mobile-responsive="true"></table>
			</div>
		</div>
	</div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('channel:vwChannelWbCashDayStat:edit')}]];
        var removeFlag = [[${@permission.hasPermi('channel:vwChannelWbCashDayStat:remove')}]];
        var prefix = ctx + "channel/vwChannelWbCashDayStat";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
				exportUrl: prefix + "/export",
                modalName: "VIEW",
		        showExport: true,
                columns: [{
		            checkbox: true
		        },
				{
					field : 'userId', 
					title : '用户ID',
					visible: false
				},
				{
					field : 'channelUserName', 
					title : '用户昵称',
					sortable: true
				},
				{
					field : 'createTime', 
					title : '创建时间',
					sortable: true
				},
				{
					field : 'recAccount', 
					title : '收款账号',
					sortable: true
				},
				{
					field : 'accountStatus', 
					title : '账号状态',
					sortable: true
				},
				{
					field : 'groupName', 
					title : '分组',
					sortable: true
				},
				{
					field : 'sjjeSum', 
					title : '收款金额',
					sortable: true
				},
				{
					field : 'receiveSuccessSum', 
					title : '成功次数',
					sortable: true
				},
				{
					field : 'receiveSum', 
					title : '收款次数',
					sortable: true
				},
				{
					field : 'sucessRate', 
					title : '成功率',
					sortable: true
				}]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>